package com.nbers.springcloud.oauth2center;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

/**
 * 权限中心启动类
 * @author SIMON
 */
@SpringBootApplication
@EnableResourceServer
@EnableEurekaClient
@MapperScan("com.nbers.springcloud.oauth2center.mapper")
public class Oauth2CenterApp {
    public static void main(String[] args) {
        SpringApplication.run(Oauth2CenterApp.class,args);
        System.out.println("Oauth2CenterApp is running!");
    }
}
